from django.urls import path, include

from api import views

urlpatterns = [
    path("gen/", views.BookGenericAPIView.as_view()),
    path("gen/<str:id>/", views.BookGenericAPIView.as_view()),

    path("v3/gen/", views.BookGenericAPIViewV3.as_view()),
    path("v3/gen/<str:id>/", views.BookGenericAPIViewV3.as_view()),

    path("set/", views.UserViewSetView.as_view({"post": "user_login", "get": "get_user_count"})),
    # path("set/<str:id>/", views.UserViewSetView.as_view({"post": "user_login", "get": "get_user_count"})),
    path("set/register/", views.UserViewSetView.as_view({"post": "user_register"})),


]
